#ifndef GENERAL_INT_H_
#define GENERAL_INT_H_

#include <fstream>
typedef unsigned long int ulong;
typedef unsigned int uint;

class intArray
{
    public:
        intArray();
        intArray(uint n, uint max);
        intArray(uint* arr, uint n,uint max);
        intArray(intArray& object);
        ~intArray();

        bool write(std::ofstream& fout);
        bool read(std::ifstream& fin);
    private:
        ulong* array;
        uint size;
        uint wordsize;
        uint innersize;

        void init(uint* arr);
        void setfiled(uint index,ulong value);
    public:
        ulong getfiled(uint index);
};
#endif
